﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dali.Address;

namespace Dali.Command
{
  public class DirectArcPower : DaliCommand
  {
    public DirectArcPower()
      : base()
    { }

    public DirectArcPower(DaliAddress address, byte power)
      : base()
    {
      this.Address = address;
      this.Power = power;
    }

    public byte Power
    {
      get;
      set;
    }

    public override byte[] GetHidCommand()
    {
      byte[] hidCommand;

      hidCommand = base.GetHidCommand();

      hidCommand[5] &= 0xFE;
      hidCommand[6] = this.Power;

      return hidCommand;
    }
  }
}
